<?php
/*------------------------------------------------------------------------
 * setting.php 
 *
 * 配置文件
 * 	
 * Created on 2016-12-29
 *
 * Author: hwc123 <hwc123@139.com>
 * 
 * Copyright (c) 2016 All rights reserved.
 *
 * 配置项说明
 * ----label		标签
 * ----title		标题
 * ----name			键名
 * ----val			默认值
 * ----description	描述
 * ----val_type		值类型 text、radio、textarea、file
 * ----val_content	选项内容,对radio有效
 * 
 * ------------------------------------------------------------------------
 */
return [
	'setting' => [
		// 系统配置
		'system' => [
			['label' => '网站配置', 'title' => '网站标题', 'name' => 'web_title', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => '网站关键字', 'name' => 'web_keywords', 'val'=> '', 'description' => '', 'val_type' => 'textarea', 'val_content' => ''],
			['label' => '', 'title' => '网站描述', 'name' => 'web_description', 'val'=> '', 'description' => '', 'val_type' => 'textarea', 'val_content' => ''],
			['label' => '', 'title' => '咨询电话', 'name' => 'service_phone', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => '客服QQ', 'name' => 'service_qq', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => '客服URL', 'name' => 'service_url', 'val'=> '', 'description' => '', 'val_type' => 'url', 'val_content' => ''],
			['label' => '', 'title' => '公众号二维码', 'name' => 'weixin_qrcode_file_id', 'val'=> '', 'description' => '', 'val_type' => 'file', 'val_content' => ''],
			['label' => '', 'title' => '备案号', 'name' => 'web_filing_number', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => 'WEB版本号', 'name' => 'web_version', 'val'=> '1.0.0', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => 'WEB统计代码', 'name' => 'web_statistical_code', 'val'=> '', 'description' => '', 'val_type' => 'textarea', 'val_content' => ''],
			['label' => '', 'title' => 'WAP统计代码', 'name' => 'wap_statistical_code', 'val'=> '', 'description' => '', 'val_type' => 'textarea', 'val_content' => ''],
			// ['label' => '', 'title' => '开放注册', 'name' => 'is_open_register', 'val'=> '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=开放||0=关闭'],
			['label' => '', 'title' => 'WAP地址', 'name' => 'wap_url', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			
		],
		// 悬赏配置
		'reward' => [
			['label' => '悬赏配置', 'title' => '悬赏数值', 'name' => 'reward_val_list', 'val' => '', 'description' => '一行一个数值', 'val_type' => 'textarea', 'val_content' => '', 'style' => 'height:300px'],
		],
		// 悬赏配置
		'user' => [
			['label' => '用户配置', 'title' => '姓名/昵称过滤', 'name' => 'name_filter', 'val' => '', 'description' => '一行一个数值', 'val_type' => 'textarea', 'val_content' => '', 'style' => 'height:300px'],
		],
		'email' => [
			['label' => '服务配置', 'title' => '用户名', 'name' => 'email_name', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '',],
			['label' => '', 'title' => '用户签名', 'name' => 'email_signature', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '',],
			['label' => '', 'title' => '来源邮箱', 'name' => 'email_source', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '',],
			['label' => '', 'title' => '来源名称', 'name' => 'email_source_name', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '',],
			['label' => '', 'title' => '服务地址', 'name' => 'email_service', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '',],
			['label' => '', 'title' => '服务端口', 'name' => 'email_port', 'val' => '465', 'description' => '', 'val_type' => 'text', 'val_content' => '',],
			['label' => '', 'title' => '开启发送日志', 'name' => 'is_record_send_logs', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '0=关闭||1=开启'],
		],
		// 短信配置
		'sms' => [
			//创蓝短信
			['label' => '创蓝短信', 'title' => '账号', 'name' => 'cl_account', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => ['name' => '申请', 'url' => 'http://www.cl2009.com/']],
			['label' => '', 'title' => '密码', 'name' => 'cl_password', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			
			//中国网建
			['label' => '中国网建', 'title' => '账号', 'name' => 'wc_uid', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => ['name' => '申请', 'url' => 'http://sms.webchinese.com.cn/']],
			['label' => '', 'title' => 'KEY', 'name' => 'wc_key', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			
			//亿美
			['label' => '亿美', 'title' => 'cdkey', 'name' => 'b2m_cdkey', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => '密码', 'name' => 'b2m_password', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			
			//云片网
			['label' => '云片网', 'title' => 'APIKEY', 'name' => 'yunpian_apikey', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => ['name' => '申请', 'url' => 'http://www.yunpian.com/']],
			
			//集时通
			['label' => '集时通', 'title' => '账号', 'name' => 'vcomcn_account', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => '密码', 'name' => 'vcomcn_password', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			
			['label' => '阿里大鱼', 'title' => 'appkey', 'name' => 'al_appkey', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => 'secretKey', 'name' => 'al_secretKey', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			//其它配置
			['label' => '其它配置', 'title' => '使用短信类型', 'name' => 'type', 'val'=> '', 'description' => '', 'val_type' => 'radio', 'val_content' => 'cl=创蓝短信||b2m=亿美短信||webchinese=中国网建||yunpian=云片网短信||yunpian_voice=云片网语音||vcomcn=集时通||alidayu=阿里大鱼'],
			['label' => '', 'title' => '签名', 'name' => 'signature', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => '验证码模板', 'name' => 'smscode_tpl', 'val' => '', 'description' => '#signature#为签名<br>#code#为验证码', 'val_type' => 'textarea', 'val_content' => ''],
			['label' => '', 'title' => '开启发送日志', 'name' => 'is_record_send_logs', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '0=关闭||1=开启'],
			//短信提醒时间段
			// ['label' => '短信提醒时间段', 'title' => '开始时间', 'name' => 'start_remind_time', 'val'=> '', 'description' => '开始提醒时间', 'val_type' => 'select', 'val_content' => '08=8点||09=9点||10=10点||11=11点||12=12点||13=13点||14=14点||15=15点||16=16点||17=17点||18=18点||19=19点||20=20点||21=21点||22=22点'],
			// ['label' => '', 'title' => '结束时间', 'name' => 'end_remind_time', 'val' => '', 'description' => '结束提醒时间', 'val_type' => 'select', 'val_content' => '08=8点||09=9点||10=10点||11=11点||12=12点||13=13点||14=14点||15=15点||16=16点||17=17点||18=18点||19=19点||20=20点||21=21点||22=22点'],
			//阿里大于
		],
		
		//短信过滤
		'filter_sms' => [
			//创蓝短信
			['label' => '过滤手机号', 'title' => '手机号', 'name' => 'filter_mobile', 'val' => '', 'description' => '一行一个手机号', 'val_type' => 'textarea', 'val_content' => '', 'style'=>'height:400px;'],
		],

		//微信配置
		'weixin' => [
			['label' => '公众号配置', 'title' => 'Token', 'name' => 'token', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => ['name' => '申请', 'url' => 'https://mp.weixin.qq.com/']],
			['label' => '', 'title' => 'AppID', 'name' => 'appid', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => 'AppSecret', 'name' => 'appsecret', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => '关注欢迎词', 'name' => 'welcome', 'val'=> '', 'description' => '', 'val_type' => 'textarea', 'val_content' => ''],
			['label' => 'WEB配置', 'title' => 'AppID', 'name' => 'web_appid', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => ['name' => '申请', 'url' => 'https://open.weixin.qq.com/']],
			['label' => '', 'title' => 'AppSecret', 'name' => 'web_appsecret', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			// ['label' => 'WEB-账号中心配置', 'title' => 'AppID', 'name' => 'web_sso_appid', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => ['name' => '申请', 'url' => 'https://open.weixin.qq.com/'],
			// ['label' => '', 'title' => 'AppSecret', 'name' => 'web_sso_appsecret', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			// ['label' => 'Android配置', 'title' => 'AppID', 'name' => 'android_appid', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => ['name' => '申请', 'url' => 'https://open.weixin.qq.com/'],
			// ['label' => '', 'title' => 'AppSecret', 'name' => 'android_appsecret', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			// ['label' => 'iOS配置', 'title' => 'AppID', 'name' => 'ios_appid', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => ['name' => '申请', 'url' => 'https://open.weixin.qq.com/'],
			// ['label' => '', 'title' => 'AppSecret', 'name' => 'ios_appsecret', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			// ['label' => '消息模板', 'title' => '点名模板ID', 'name' => 'rollcall_template_id', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
		],
		//QQ登录配置
		'qq' => [
			['label' => 'QQ登录配置', 'title' => 'APP ID', 'name' => 'appid', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => ['name' => '申请', 'url' => 'http://connect.qq.com/']],
			['label' => '', 'title' => 'APP KEY', 'name' => 'appkey', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => '回调地址', 'name' => 'callback', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
		],
		//微博登录配置
		'weibo' => [
			['label' => '微博配置', 'title' => 'App Key', 'name' => 'appkey', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => ['name' => '申请', 'url' => 'http://open.weibo.com/']],
			['label' => '', 'title' => 'App Secret', 'name' => 'appsecret', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
		],

		// OSS配置
		'aliyun_oss' => [
			['label' => 'Access Key', 'title' => 'Key ID', 'name' => 'key_id', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => 'Key Secret', 'name' => 'key_secret', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => 'OSS配置', 'title' => 'Bucket', 'name' => 'bucket_name', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => 'Endpoint', 'name' => 'endpoint', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => '绑定域名', 'name' => 'file_domain', 'val' => '', 'description' => '', 'val_type' => 'url', 'val_content' => ''],
			['label' => '', 'title' => '图片域名', 'name' => 'img_domain', 'val' => '', 'description' => '', 'val_type' => 'url', 'val_content' => ''],
			['label' => '', 'title' => '删除本地文件', 'name' => 'is_delete_local', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=删除||0=保留'],
			['label' => '', 'title' => '异步上传服务', 'name' => 'is_open', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=启用||0=禁用'],
		],

		//极光配置
		'jpush' => [
			//家长版配置
			['label' => '家长版配置', 'title' => 'AppKey', 'name' => 'parent_app_keys', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => 'Master Secret', 'name' => 'parent_master_secret', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => 'APNS环境', 'name' => 'parent_apns_production', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=生产环境||0=开发环境'],
			//老师版配置
			['label' => '老师版配置', 'title' => 'AppKey', 'name' => 'teacher_app_keys', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => 'Master Secret', 'name' => 'teacher_master_secret', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''],
			['label' => '', 'title' => 'APNS环境', 'name' => 'teacher_apns_production', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=生产环境||0=开发环境'],
		],

		// 接口配置
		'api' => [
			['label' => '接口配置', 'title' => '接口日志开关', 'name' => 'api_logs_open', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=打开||0=关闭'],
			['label' => '', 'title' => '授权开关', 'name' => 'api_auth_open', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=打开||0=关闭'],
		],

	],
];